package com.gqb.web;

import java.util.HashMap;
import java.util.Map;

public class ModelAndView {
	private Map<String, Object> model=new HashMap<String, Object>();
	private String viewPath;
	
	public ModelAndView() {
	}
	public ModelAndView(String viewPath) {
		this.viewPath = viewPath;
	}
	public Map<String, Object> getModel() {
		return model;
	}
	public void setModel(Map<String, Object> modelMap) {
		this.model = modelMap;
	}
	public String getViewPath() {
		return viewPath;
	}
	public void setViewPath(String viewPath) {
		this.viewPath = viewPath;
	}
	
	public void addParameter(String key,Object value){
		modelMap.put(key, value);
	}
	
}
